package com.cskaoyan.bean.bo;


import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 该实体类为 ad update 请求对应的参数类;  与 BaseParam 无法保持一致;
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/4 12:39
 */

@Data
public class AdvertiseUpdateBo {


    private Integer id;

    private String name;

    private String link;

    private String url;

    private Integer position;

    private String content;

    private Boolean enabled;

    // updateTime: "2022-06-04 12:40:35"
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")   // 要求以该形式接收客户端参数;即可由 spring自动解析
    private Date addTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    // 该标识用于`假删除`
    private Boolean deleted;

}
